<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">
  
  <!-- missing escalationCode for throwing escalation event -->
  <escalation id="escalation" name="escalation" />

  <process id="escalationProcess" isExecutable="true">
  
  <startEvent id="start" />
  
  <sequenceFlow sourceRef="start" targetRef="subProcess" />
  
   <subProcess id="subProcess">
    <startEvent id="startSubProcess" />
    <sequenceFlow sourceRef="startSubProcess" targetRef="mySubProcessUserTask" />
    <userTask id="mySubProcessUserTask" />
    <sequenceFlow sourceRef="mySubProcessUserTask" targetRef="endSubProcess" />
    <endEvent id="endSubProcess" />
   </subProcess>
  
  <sequenceFlow sourceRef="subProcess" targetRef="escalationThrowingEvent" />
  
  <intermediateThrowEvent id="escalationThrowingEvent">
    <escalationEventDefinition escalationRef="escalation" />
  </intermediateThrowEvent>
  
  <sequenceFlow sourceRef="escalationThrowingEvent" targetRef="myUserTask" />
  
  <userTask id="myUserTask" />
  
  <sequenceFlow sourceRef="myUserTask" targetRef="theEnd" />
  
  <endEvent id="theEnd" />
  
  </process>

</definitions>
